function compareSymbols(x, d)

bitsPerSymbol = 2;

compare = x == d;

numErrors = length(find(compare(:) == 0));

disp(['Number of Bit Errors: ', num2str(numErrors)])
disp(['Number of Bits      : ', num2str(bitsPerSymbol*length(compare))])
